import Vue from 'vue'
import Vuex from 'vuex'

import common from './common'
import HomePage from './HomePage'
import userCenter from './userCeter'
import createLogger from 'vuex/dist/logger'
Vue.use(Vuex)
const debug = process.env.NODE_ENV !== 'production'
export default new Vuex.Store({
  modules: {
    common,
    HomePage,
    userCenter
  },
  strict: debug,
  plugins: debug ? [createLogger()] : []
})
